#include "UIElement.h"

namespace Lame3d
{
	UIElement::UIElement(const std::string &n, const Point2d &loc, const Point2d &s)
			: name(n), location(loc), size(s)
	{
	}
	
	UIElement::~UIElement()
	{
	}
	
	const std::string& UIElement::Name() const
	{
		return name;
	}
	
	const Point2d& UIElement::Location() const
	{
		return location;
	}
	
	Point2d& UIElement::Location()
	{
		return location;
	}
	
	const Point2d& UIElement::Size() const
	{
		return size;
	}
	
	Point2d& UIElement::Size()
	{
		return size;
	}
	
	const std::string& UIElement::ClickedMessage() const
	{
		return clickedMessage;
	}
	
	void UIElement::ClickedMessage(const std::string &s)
	{
		clickedMessage = s;
	}	
}
